Skip to main content

start using font

Type

command

Summary

Loads a font from a font file into memory.

Syntax

start using font file <fontFile> [globally]

Description

The start using font command loads a font from a font file into memory. The fontFile is the path to the font file. Use the globally adverb to indicate that the font should be available to all applications on the system rather than private to the current application.

note

The fontNames function will return the name of all available fonts and the fontFilesInUse property will return the fill paths of the loaded font files. To determine the name of the newly loaded font, compare the value of the fontNames before and after loading the font.

Parameters

NameTypeDescription

fontFile

Examples

start using font file "C:/myFontFolder/myCustomFont.ttf"
start using font file "C:/myFontFolder/myCustomFont.ttf" globally

command: stop using font

function: result, fontNames

glossary: function, property

property: fontFilesInUse

Compatibility and Support

Introduced

LiveCode 6.5

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?